import { toSuccess, useMqChannel } from "@sker/core"
import { useData } from '@sker/runtime'
export default async ()=>{
    const body = useData()
    await useMqChannel(async (s)=>{
        s.sendToQueue('rooms', Buffer.from(JSON.stringify(body)))
    })
    return toSuccess(true)
}